package com.zhengxin.one.mapper;

import com.zhengxin.one.dto.keepPayDTO;
import com.zhengxin.one.entity.BillAccumulation;
import com.zhengxin.one.entity.BillBase;
import com.zhengxin.one.entity.BillCommercial;
import com.zhengxin.one.entity.BillSociety;
import com.zhengxin.one.entity.excel.PersonExportExcel;
import org.springframework.stereotype.Component;

import java.time.LocalDate;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

@Component
public interface BillMapper {
    //验证参保人是否存在
    Boolean checkUser(String id_card);
    Boolean checkUserA(String id_card);
    Boolean checkUserS(String id_card);
    Boolean checkUserC(String id_card);
    //添加参保人基础信息
    int insertBase(BillBase bean);
    //参保人参保情况查询
    BillBase billinfos(String id_card);
    //添加社保
    int insertSociety(BillSociety bean);
    //添加公积金
    int insertAccumulation(BillAccumulation bean);
    //添加商保
    int insertCommercial(BillCommercial bean);
    //社保申请失败
    List<Map> SoFail(String company_id);
    //公积金申请失败
    List<Map> AcFail(String company_id);
    //商保申请失败
    List<Map> CoFail(String company_id);
    //参保人模糊查询
    List<BillBase> queryBsList(String keyword,String company_id);
    //参保人导出模糊查询
    List<PersonExportExcel> queryexport(String keyword,String company_id);
    //各类bill查询
    Map billall(String id_card,int type);

    int handbase(String id_card,int type,int bill_id);

    //获取续缴列表
    List<BillBase> keepList(String company_id,String keyword);

    BillSociety keepLists(String id_card, String localDate);

    BillAccumulation keepLista(String id_card, String localDate);

    BillCommercial keepListc(String id_card, String localDate);
    //获取公司第一次时间
    String getFT(String companyId);
}
